package service

import (
	"github.com/gin-gonic/gin"
	_ "github.com/go-sql-driver/mysql"
)

type Base struct{}

//状态统一返回
func ReturnJson(c *gin.Context, code int, msg string, data gin.H) {
	c.JSON(200, gin.H{
		"code": code,
		"msg":  msg,
		"data": data,
	})
}
